package com.kaifamiao.collection;

import java.util.Collection;

public class TestContainerAddAll {

    public static void main(String[] args) {

        Collection<Integer> first = new Container<>();
        first.add( 92 );
        first.add( 95 );
        first.add( 78 );
        first.add( 12 );
        System.out.println( first );

        Collection<Integer> second = new Container<>();
        second.addAll( first );
        second.add( 100 );
        System.out.println( second );

        Collection<Integer> third = new Container<>( second );
        System.out.println( third );

    }

}
